﻿using System.Collections.Concurrent;
using System.Threading.Tasks;

namespace ChatCore.Interfaces
{
	internal interface IChatResourceProvider<T> where T : class
	{
		ConcurrentDictionary<string, T?> Resources { get; }
		Task<bool> TryRequestResources(string category);
		bool TryGetResource(string identifier, string category, out T? data);
	}
}